package cn.gson.springboot.model.vo.salesvo;

import org.apache.ibatis.annotations.One;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import java.math.BigDecimal;

public class InvoiceDetailsVo {
    private Integer detaId;//交付详情id
    private String productName;//产品名称
    private String prModel;//产品型号
    private Integer psNumber;//库存数量
    private Double detaPrice;//售价
    private Integer detaNumber;//订单产品数量

    private BigDecimal detDiscount;//折扣
    private String prUnit;//单位



    private DeliveryplanVo deliveryplanVo;

    @ManyToOne
    @JoinColumn(name = "id", referencedColumnName = "id")
    public DeliveryplanVo getDeliveryplanVo() {
        return deliveryplanVo;
    }

    public void setDeliveryplanVo(DeliveryplanVo deliveryplanVo) {
        this.deliveryplanVo = deliveryplanVo;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getPrModel() {
        return prModel;
    }

    public void setPrModel(String prModel) {
        this.prModel = prModel;
    }

    public Integer getPsNumber() {
        return psNumber;
    }

    public void setPsNumber(Integer psNumber) {
        this.psNumber = psNumber;
    }

    public Double getDetaPrice() {
        return detaPrice;
    }

    public void setDetaPrice(Double detaPrice) {
        this.detaPrice = detaPrice;
    }

    public Integer getDetaNumber() {
        return detaNumber;
    }

    public void setDetaNumber(Integer detaNumber) {
        this.detaNumber = detaNumber;
    }


    public Integer getDetaId() {
        return detaId;
    }

    public void setDetaId(Integer detaId) {
        this.detaId = detaId;
    }

    public BigDecimal getDetDiscount() {
        return detDiscount;
    }

    public void setDetDiscount(BigDecimal detDiscount) {
        this.detDiscount = detDiscount;
    }

    public String getPrUnit() {
        return prUnit;
    }

    public void setPrUnit(String prUnit) {
        this.prUnit = prUnit;
    }
}
